<!DOCTYPE html>
<style>div { width: 100px; height: 100px } </style>
<div style="transform: rotateX(180deg); -webkit-transform-style: preserve-3d; background: green">
  <div style="backface-visibility: hidden; background: red;"></div>
</div>
